package com.qidianit.mes.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class DeviceMainPlan {


        private Integer id;                // 主键
        private String planCode;
        private String planName;           // 计划名称
        private String planType;           // 计划类型
        private String frequency;       //频率
        private String frequencyAmount;     // 频率数量
        private String frequencyUnit;       // 频率单位

        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd")
        private Date startDate;            // 开始日期

        @DateTimeFormat(pattern = "yyyy-MM-dd")
        @JsonFormat(pattern = "yyyy-MM-dd")
        private Date endDate;              // 结束日期
        private String planStatus;         // 状态
        private String remarks;             // 备注
        private String status;              // 逻辑删除状态


    public DeviceMainPlan() {
    }

    public DeviceMainPlan(Integer id, String planCode, String planName, String planType, String frequencyAmount, String frequencyUnit, Date startDate, Date endDate, String planStatus, String remarks, String status) {
        this.id = id;
        this.planCode = planCode;
        this.planName = planName;
        this.planType = planType;
        this.frequencyAmount = frequencyAmount;
        this.frequencyUnit = frequencyUnit;
        this.startDate = startDate;
        this.endDate = endDate;
        this.planStatus = planStatus;
        this.remarks = remarks;
        this.status = status;
    }


    // Getter 和 Setter 方法


    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getPlanCode() {
        return planCode;
        }

        public void setPlanCode(String planCode) {
        this.planCode = planCode;
        }

        public String getPlanName() {
            return planName;
        }

        public void setPlanName(String planName) {
            this.planName = planName;
        }

        public String getPlanType() {
            return planType;
        }

        public void setPlanType(String planType) {
            this.planType = planType;
        }

        public String getFrequencyAmount() {
            return frequencyAmount;
        }

        public void setFrequencyAmount(String frequencyAmount) {
            this.frequencyAmount = frequencyAmount;
        }

        public String getFrequencyUnit() {
            return frequencyUnit;
        }

        public void setFrequencyUnit(String frequencyUnit) {
            this.frequencyUnit = frequencyUnit;
        }

        public Date getStartDate() {
            return startDate;
        }

        public void setStartDate(Date startDate) {
            this.startDate = startDate;
        }

        public Date getEndDate() {
            return endDate;
        }

        public void setEndDate(Date endDate) {
            this.endDate = endDate;
        }

        public String getPlanStatus() {
            return planStatus;
        }

        public void setPlanStatus(String planStatus) {
            this.planStatus = planStatus;
        }

        public String getRemarks() {
            return remarks;
        }

        public void setRemarks(String remarks) {
            this.remarks = remarks;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }


}
